package com.zsrt.java.day20161228.lh.day28.demo05;

import static org.junit.Assert.*;

import org.junit.Test;
/**
 * 打印
 * 1.给对象生成一个toString
 * 2。直接打印类名
 * @author My
 *
 */
public class CarTest {

	@Test
	public void wucanshu() {
		//new 一个对象
		Car car=new Car();
		//给对象赋值
		car.setBrand("byd");
		car.setPrice(1111);
		System.out.println(car.getPrice());
		System.out.println(car.getBrand());
	
	}
	@Test
	public void youcanshu() {
		//new 一个对象
		Car car=new Car(200,"bwm");
		//给对象赋值
		
		System.out.println(car.getPrice());
		System.out.println(car.getBrand());
		
	}

}
